HTMLify
style.css
Views: 15 | Author: cody
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | * { margin: 0; padding: 0; box-sizing: border-box; } .container { position: relative; width: 100%; min-height: 100vh; background: #131313; overflow: hidden; } .layer { position: absolute; top: 50%; left: 50%; width: 100px; height: 250vh; background: #fff; box-shadow: inset -10px 0 40px rgba(0, 0, 0, 1), inset 10px 0 40px rgba(0, 0, 0, 1), inset -10px 0 10px rgba(255, 255, 0255, 0.25), inset 10px 0 10px rgba(255, 255, 255, 0.25), 0 0 50px rgba(0, 0, 0, 1); } .layer.layer1 { background: #222 radial-gradient(#6dff73 9px, #000 9px, #000 13px, transparent 13px ); background-size: 35px 35px; transform: translate(-50%, -50%) rotate(45deg); z-index: 10; animation: animateDots_one 2s linear infinite; } .layer.layer2 { background: #222 radial-gradient(#db0aff 9px, #000 9px, #000 13px, transparent 13px ); background-size: 35px 35px; transform: translate(-50%, -38%) rotate(45deg); z-index: 8; animation: animateDots_two 2s linear infinite; } .layer.layer3 { background: #222 radial-gradient(#03a9f4 9px, #000 9px, #000 13px, transparent 13px ); background-size: 35px 35px; transform: translate(-50%, -62%) rotate(45deg); z-index: 8; animation: animateDots_two 2s linear infinite; } .layer.layer4 { background: #222 radial-gradient(#ffc107 9px, #000 9px, #000 13px, transparent 13px ); background-size: 35px 35px; transform: translate(-50%, -50%) rotate(-45deg); z-index: 11; animation: animateDots_one 2s linear infinite; } .layer.layer5 { background: #222 radial-gradient(#e91e63 9px, #000 9px, #000 13px, transparent 13px ); background-size: 35px 35px; transform: translate(-50%, -38%) rotate(-45deg); z-index: 9; animation: animateDots_two 2s linear infinite; } .layer.layer6 { background: #222 radial-gradient(#0f0 9px, #000 9px, #000 13px, transparent 13px ); background-size: 35px 35px; transform: translate(-50%, -62%) rotate(-45deg); z-index: 9; animation: animateDots_two 2s linear infinite; } @keyframes animateDots_one { 0% { background-position: 0 0; } 100% { background-position: 35px -35px; } } @keyframes animateDots_two { 0% { background-position: 35px -35px; } 100% { background-position: 0 0; } } |